package org.example.designPattern.zerenlian.zerenjianzao;

import org.example.designPattern.zerenlian.good.Member;

public class AuthHandler extends Handler {
    @Override
    public void doHandler(Member member) {
        if (!"管理员".equals(member.getRoleName())){
            System.out.println("您不是管理员，无操作权限");
            return;
        }
        System.out.println("您是管理员，允许操作");
    }
}
